package cn.bore.tomato.domain.bo;

import cn.bore.tomato.domain.TmsTasks;
import cn.bore.common.mybatis.core.domain.BaseEntity;
import cn.bore.common.core.validate.AddGroup;
import cn.bore.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 测试单业务对象 tms_tasks
 *
 * @author 范亚鹏
 * @date 2025-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TmsTasks.class, reverseConvertGenerate = false)
public class TmsTasksBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 番茄时长
     */
    @NotNull(message = "番茄时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long workDuration;

    /**
     * 休息时长
     */
    @NotNull(message = "休息时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long restDuration;

    /**
     * 重复次数
     */
    @NotNull(message = "重复次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long repeatTime;

    /**
     * 排序号
     */
    @NotNull(message = "排序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 是否完成
     */
    @NotNull(message = "是否完成不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long completed;


}
